
// 本地存储
export const setStorage = (key, val) => {
  localStorage.setItem(key, val)
}
// 本地取值
export const getStorage = (key) => {
  return localStorage.getItem(key)
}
// 删除本地某一项的key和value
export const removeStorage = (key) => {
  localStorage.removeItem(key)
}
// 删除本地所有数据
export const clearStorage = () => {
  localStorage.clear()
}
